package com.tanqidi.arcgisandroid.di

import android.content.Context
import com.tanqidi.arcgisandroid.data.project.ProjectRepository
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object RepositoryModule {

    @Singleton
    @Provides
    fun buildProjectRepository(@ApplicationContext context: Context) = ProjectRepository(context)

}